﻿function funMenuHover(id)
{
    document.getElementById(id).className = "classHover";
    document.getElementById(id).style.color= "#333";
    if(id == "SecondItem")
    {
        document.getElementById("Div_Second").style.display = "";
    }
}
function funMenuOut(id)
{
    document.getElementById(id).removeAttribute("class");
    document.getElementById(id).style.color= "#fff";
     if(id == "SecondItem")
    {
        document.getElementById("Div_Second").style.display = "none";
    }
}

function funSubMenu(id)
{
    document.getElementById(id).style.color = "#769ab6";
}

function funSubMenuOut(id)
{
    document.getElementById(id).style.color = "#616161";
}

$(document).ready(function(){
        $("#td_M1").click(function(event){
            $("#div_M1").toggle("slow");
        });
        
        $("#td_M2").click(function(event){
            $("#div_M2").toggle("slow");
        });
        
        $("#td_M3").click(function(event){
            $("#div_M3").toggle("slow");
        });        
        
        $("#td_M4").click(function(event){
            $("#div_M4").toggle("slow");
        });
        
        $("#td_M5").click(function(event){
            $("#div_M5").toggle("slow");
        });
        
        $("#td_M6").click(function(event){
            $("#div_M6").toggle("slow");
        });
    });